<?php
class BaseView {
	const LEFT_DELIMITER  = '{=';
	const RIGHT_DELIMITER = '=}';
	private static $tpl    = NULL;
	public function __construct() {
		if( NULL === self::$tpl ) {
			self::$tpl = new Smarty();
			self::$tpl->template_dir    = PATH_APP_TPL;		
			self::$tpl->compile_dir     = PATH_APP_TPC;	
		    self::$tpl->plugins_dir[]   = PATH_MYPLUGINS;
			self::$tpl->left_delimiter  = self::LEFT_DELIMITER;
			self::$tpl->right_delimiter = self::RIGHT_DELIMITER;
			self::$tpl->compile_locking = false;
		}
	}
	public function __call($func,$args) {
		return call_user_func_array(array(&self::$tpl,$func),$args);
	}
}
?>